home *** CD-ROM | disk | FTP | other *** search
- //
- // Generated by Microsoft (R) D3DX9 Shader Compiler 9.04.91.0000
- //
- // fxc /T ps_2_0 /DCGC=0 /Fc ..\..\WorkDir\Shaders\ps\ps2_0_HDR_imposter.psh
- // ps2_0_HDR_imposter.cg
- //
- //
- // Parameters:
- //
- // float4 $AmbientEmissive;
- // float4 $Diffuse;
- // float4 $LightSrcIntencity;
- // sampler2D $baseMap;
- //
- //
- // Registers:
- //
- // Name Reg Size
- // ------------------ ----- ----
- // $AmbientEmissive c0 1
- // $Diffuse c1 1
- // $LightSrcIntencity c2 1
- // $baseMap s0 1
- //
-
- ps_2_0
- def c3, 0, 0.0199999996, 65504, 0
- dcl t0.xy
- dcl t1
- dcl t3
- dcl t4.x
- dcl_2d s0
- texld r1, t0, s0
- mov r0, t1
- dp4 r2.w, r0, t3
- max r0.w, r2.w, c3.x
- mul r0.xyz, r0.w, c1
- mul r0.xyz, r0, c2
- mul r2.xyz, t4.x, c0
- mov r3.z, c3.y
- mad r2.xyz, r2, c2, r3.z
- mad r0.xyz, r0, t4.x, r2
- mul r1.xyz, r1, r0
- min r0, r1, c3.z
- mov oC0, r0
-
- // approximately 13 instruction slots used (1 texture, 12 arithmetic)
-